package org.lwj.logger.json.support;

import org.lwj.logger.json.JsonSerializer;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

public class GsonJsonSerializer implements JsonSerializer {
	private Gson gson = new GsonBuilder().setDateFormat("yyyy-MM-dd HH:mm:ss").create();

	public String toJson(Object obj) {
		return gson.toJson(obj);
	}

}
